Learning Objectives

After completing this lesson, you'll be able to:

Introduction

Usual attribute renaming involves selecting individual attributes to modify. However, in some cases, it's important to be able to carry out the same renaming operation on a large number of attributes.

This scenario is catered for by the BulkAttributeRenamer transformer.

The BulkAttributeRenamer connected to a reader feature type

BulkAttributeRenamer

The BulkAttributeRenamer carries out the core function of renaming attributes. But instead of manually specifying each attribute, this transformer lets the user apply a renaming action to All Attributes or Selected Attributes.

BulkAttributeRenamer parameters

The rename actions available are:

List of available BulkAttributeRenamer actions

The power of the transformer is its ability to rename multiple attributes at once without having to select them all individually. Here, for example, the incoming attributes are all being renamed to lowercase names to match a writer schema that does not support uppercase:

BulkAttributeRenamer connected to a reader feature type

Multiple transformers can be used to create a cumulative effect. Here, for example, the user has converted to lowercase and then used a second transformer to add a prefix:

Two BulkAttributeRenamer transformers connected in series